#!/usr/bin/python

#from distutils.core import setup
from setuptools import setup
from distutils.extension import Extension

#version hack
from commands import getoutput
rev = getoutput("svn info | grep Revision: ")
rev = rev[rev.rfind(":")+2:] #from : +1 to end is revision number
rev = rev.strip(" ")
rev = "r"+rev
print rev

setup(name='lpantilt',
      version=rev,
      description='',
      author='unlotto',
      author_email='paranoid: unlotto~gmail~com',
      url='http://lpantilt.googlecode.com',
      ext_modules=[Extension('lpantilt', ['lpantilt/lpantilt.c'])],
      packages=['lpantilt',]
      )


#You may also build the module directly from the pyx file using cython
#./setup.py build_ext --inplace
"""
from Cython.Distutils import build_ext
setup(name='lpantilt',
      version='1.0',
      cmdclass = {"build_ext":build_ext},
      ext_modules=[Extension('lpantilt', ['lpantilt.pyx'])],
      )
"""